/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo.reflection;

/**
 *
 * @author VANDH
 */
public class MyClass {

    private int count;

    public MyClass() {
        count = 5;
    }

    public MyClass(int c) {
        count = c;
    }

    public void setCount(int c) {
        count = c;
    }

    public int getCount() {
        return count;
    }

    public void showcount() {
        System.out.println("count is " + count);
    }

    @Override
    public String toString() {
        return Integer.toString(count);
    }
}
